package org.tinygroup.earthworm2.test;

import org.tinygroup.earthworm2.EarthWorm2;
import org.tinygroup.logger.LogLevel;
import org.tinygroup.logger.Logger;
import org.tinygroup.logger.LoggerFactory;

public class OnlyRpc {
	private static Logger LOGGER = LoggerFactory.getLogger(OnlyRpc.class);
	public static void main(String[] args) {
		LOGGER.logMessage(LogLevel.INFO, "startRpc之前");
		EarthWorm2.startRpc("a", "");
		
		LOGGER.logMessage(LogLevel.INFO, "rpcClientSend之前");
		EarthWorm2.rpcClientSend();
		
		
		LOGGER.logMessage(LogLevel.INFO, "rpcClientSend之前");
		EarthWorm2.rpcClientRecv();
		EarthWorm2.clearRpcContext();
		LOGGER.logMessage(LogLevel.INFO, "==========================");
		
		LOGGER.logMessage(LogLevel.INFO, "startRpc之前");
		EarthWorm2.startRpc("a", "");
		
		LOGGER.logMessage(LogLevel.INFO, "rpcClientSend之前");
		EarthWorm2.rpcClientSend();
		
		
		LOGGER.logMessage(LogLevel.INFO, "rpcClientSend之前");
		EarthWorm2.rpcClientRecv();
	}
}
